package com.qfmy.app.mapper.novel;

import com.qfmy.model.entity.novel.Author;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 清风明月
 * @Package com.qfmy.app.mapper.novel
 * @date 2025/4/16
 * @description 作者
 */
@Mapper
@SuppressWarnings("all")
public interface AuthorMapper {

    /**
     * 根据作者名获取作者信息
     * @param authorName
     * @return
     */
    @Select("select * from author where pen_name = #{authorName}")
    Author getAuthorByName(String authorName);
}
